<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 假设你的项目上下文路径是'/'，否则你需要替换为实际的路径 -->
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="/static/bootstrap/js/jquery-3.3.1.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/css/header.css">
    <link rel="stylesheet" type="text/css" href="/static/css/main.css">
    <link rel="stylesheet" type="text/css" href="/static/css/main2.css">
    <link rel="stylesheet" type="text/css" href="/static/css/manage.css">
    <link rel="stylesheet" type="text/css" href="/static/css/footer.css">
    <script src="/static/js/header.js" charset="utf-8"></script>
    <script src="/static/js/Api.js"></script>
    <script src="/static/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <title>电影</title>
</head>
<body>
<div class="layui-layout layui-layout-admin" style="width:100%">
    <div class="layui-header">
        <div class="layui-logo">电影院购票系统</div>
        <div class="nav">
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item"><a href="/mainPage.html">首页</a></li>
                <li class="layui-nav-item"><a href="/movieList.html">电影</a></li>
                <li class="layui-nav-item">
                    <input type="text" placeholder="搜索电影" id="searchMovie" class="layui-input" style="height: 30px;
    padding-left: 12px;
    background-color: #424652;
    background-color: rgba(255,255,255,.05);
    border: none 0;
    color: #fff;
    color: rgba(255,255,255,.5);
    font-size: 12px;">
                </li>
            </ul>
        </div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item header-li">
                <!-- 用户头像和下拉菜单 -->
            </li>
        </ul>
    </div>
</div>
<script>
    var clientHeight = document.documentElement.clientHeight;
    window.onload = function(){
        //initHeader1();
    }
    $(function(){
        $('#searchMovie').bind('keypress',function(event){
            if(event.keyCode == "13"){
                var value=$("#searchMovie").val();
                window.location.href="/movieList.html?searchMovie="+value;
            }
        })
    });
</script>
</body>
</html>